home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 2.3 KB | 81 lines | [TEXT/R*ch] |
- !
- ! InterSLIP Gateway Script for the IDS World Network (155.212.1.2)
- ! Version 1.0 (7/10/94)
- ! Bill J. Parker (billpr@ids.net)
- !
- ! To use, simply place inside the "Gateway Scripts" folder in the InterSlip folder
- ! in your Preferences folder in your System Folder (whew!) and then select it from
- ! the pull-down menu in the InterSLIP Setup window. You should configure your IP
- ! address in the Setup window as well. Leaving 1006 for MTU is a good idea, too
- ! (something is needed in the IP and MTU fields, as well as the Username/Password
- ! fields, in order for this script to work. Contact support@ids.net if you aren't
- ! sure what your IP is (although it should also be configured in MacTCP by now).
- ! The IDS World Network doesn't support this script (but I don't think they mind
- ! me doing it :-) so DON'T send questions to them about it, send all questions about
- ! the script to me, since I wrote it. I DO NOT GUARANTEE THAT THIS SCRIPT WILL WORK
- ! ON ALL MACINTOSH MACHINES (ALTHOUGH I'VE GOT NO IDEA WHY IT WOULDN'T) AND I REALLY
- ! REALLY DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OF DATA OR ANYTHING ELSE
- ! RESULTING FROM THE USE OF THIS SCRIPT (except of course when it works fine).
- ! I really hope nothing bad happens, though. --==[BJP]==--
- ! I will try to update the script for all IDS login changes in a timely fashion.
- !
- @originate
- note "Waiting for prompt..."
- matchclr
- matchstr 1 1 "login: "
- matchread 60
- note "No Login prompt"
- jump 99
- !
- ! If the Login prompt appeared, send the account name and wait for
- ! the password prompt
- !
- @label 1
- note "Sending Account Name..."
- write "^5\13"
- matchclr
- matchstr 1 2 "Password: "
- matchread 60
- note "No password prompt!"
- jump 99
- !
- ! Send the password...
- !
- @label 2
- note "Sending Password..."
- write "^6\13"
- matchclr
- matchstr 1 4 "Packet mode enabled"
- matchstr 2 3 "Login incorrect."
- matchread 120
- jump 99
- !
- ! If something went wrong...
- !
- @label 3
- note "Login incorrect!"
- !
- !Gereral purpose error handler.
- !
- @label 99
- pause 1
- sound
- pause 60
- exit -1
- !
- ! If the login was successful, then set IP/MTU (which are configured in
- ! InterSlip Setup)
- @label 4
- note "Setting IP..."
- SetIP "^7"
- note "Setting MTU..."
- SetMTU "^9"
- note "SLIP Enabled!"
- exit 0
- !
- ! Answer and Hangup are currently unused in gateway scripts, but the
- ! manual suggests using them for future compatibility.
- !
- @answer
- @hangup
- exit 0